filechooserbutton: In SELECT_FOLDER mode, consider an empty selection to mean current...
authorFederico Mena Quintero <federico@gnome.org>
Wed, 13 Feb 2013 18:12:50 +0000 (12:12 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Thu, 14 Feb 2013 00:01:39 +0000 (18:01 -0600)
commitc8403f697edef57f33c66d3d8deb1488db86d949
tree53f2247df17f136c8a52f3879e7254719601bd93
parent90a034d80066135504de4e97b1a06c28fe20178a
filechooserbutton: In SELECT_FOLDER mode, consider an empty selection to mean current_folder

If the user didn't explicitly select anything, BUT the file chooser button has
a current_folder set, do the same as what GtkFileChooserDefault would do:
return the current folder as the selection.

This makes the tests in tests/filechooser pass!

Signed-off-by: Federico Mena Quintero <federico@gnome.org>
gtk/gtkfilechooserbutton.c